import { request } from "../util/request.js";
export default {
    getOne: async (_id) => {
        return await request({
            type: "get",
            url: `/api/seats/${_id}`
        })
    },
    add: async (seat) => {
        return await request({
            type: "post",
            url: `/api/seats/`,
            data: seat,
        })
    },
    update: async (seat) => {
        return await request({
            type: "put",
            url: `/api/seats/${seat._id}`,
            data: seat,
        })
    },
    delete: async (t_id) => {
        return await request({
            type: "delete",
            url: `/api/seats/`,
            data: t_id,
        })
    }
}